import request from '@/utils/request'

/**
 * 分页查询企业信息
 *
 * @param {*} query
 */
export function getSmskCompanyList(query) {
  return request({
    url: '/smsk/admin/company/list',
    method: 'get',
    params: query
  })
}

/**
 * 创建企业信息
 * @param {*} smskCompanyInfo
 */
export function createSmskCompanyInfo(smskCompanyInfo) {
  return request({
    url: '/smsk/admin/company/create',
    method: 'post',
    data: smskCompanyInfo
  })
}

/**
 * 更新企业信息
 * @param {*} smskCompanyInfo
 */
export function updateSmskCompanyInfo(smskCompanyInfo) {
  return request({
    url: '/smsk/admin/company/update',
    method: 'post',
    data: smskCompanyInfo
  })
}

/**
 * 删除企业信息
 * @param {*} id
 */
export function deleteSmskCompanyInfo(id) {
  return request({
    url: '/smsk/admin/company/delete',
    method: 'post',
    params: { id }
  })
}

/**
 * 查询企业信息下拉列表
 *
 * @param {*} query
 */
export function selectCompanyList(query) {
  return request({
    url: '/smsk/admin/company/companylist',
    method: 'get',
    params: query
  })

}

/**
 * 查询企业列表
 *
 * @param {*} query
 */
export function queryCompList(query) {
  return request({
    url: '/smsk/admin/company',
    method: 'get',
    params: query
  })

}